package com.cskaoyan.bean.vo.promotion_vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description：
 * @author: 曹旭
 * @date: 2022/5/10 07:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class BaseRespWithoutDataVO {
    int errno;
    String errmsg;

    public static BaseRespWithoutDataVO ok() {
        return BaseRespWithoutDataVO.builder().errno(0).errmsg("成功").build();
    }

    public static BaseRespWithoutDataVO fail(int errno, String errmsg) {
        return BaseRespWithoutDataVO.builder().errno(errno).errmsg(errmsg).build();
    }
}